package com.cloudfun.campusshare.service;

import com.cloudfun.campusshare.common.model.dto.DeviceCsqDTO;
import com.cloudfun.campusshare.common.model.vo.DeviceCsqListVO;
import com.cloudfun.campusshare.common.response.PageResult;
import com.cloudfun.campusshare.entity.DeviceCsqEntity;
import org.springframework.data.domain.Pageable;

/**
 * Created by CodeGenerator on 2020/09/27
 */
public interface DeviceCsqService {

    /**
     * 创建
     *
     * @param deviceCsqDTO
     */
    void create(DeviceCsqDTO deviceCsqDTO);

    /**
     * 根据Imei获取最后一条数据
     *
     * @param imei
     * @return
     */
    DeviceCsqEntity getLatestByImei(String imei);

    /**
     * 分页查询
     *
     * @param imei
     * @param pageable
     * @return
     */
    PageResult<DeviceCsqListVO> queryByImei(String imei, Pageable pageable);
}